#include <stdio.h>

int main()
{
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);
	int A = a - b;
	int A_dad = b;
	int A_grandma = a + c;
	printf("%d %d", A, A_grandma);
	return 0;
}